<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
	<Source>
		<Name>gpsd</Name>
		<Homepage>https://gpsd.gitlab.io/gpsd/</Homepage>
		<Packager>
			<Name>PisiLinux Community</Name>
			<Email>admins@pisilinux.org</Email>
		</Packager>
		<License>BSD</License>
		<IsA>app</IsA>
		<IsA>library</IsA>
		<PartOf>science.gis</PartOf>
		<Summary>GPS daemon and library to support serial/USB GPS devices.</Summary>
		<Description>
			gpsd is a service daemon that monitor one or more GPSes attached to a host computer through serial or USB ports, making all data of the sensors available to be queried on TCP port 2947 of the host computer.
		</Description>
		<Archive sha1sum="dc8c0fa666a961473bdd092264f0bb91362eb06d" type="tarxz">
			http://download-mirror.savannah.gnu.org/releases/gpsd/gpsd-3.25.tar.xz
		</Archive>
		<BuildDependencies>
			<Dependency>scons</Dependency>
			<Dependency>xmlto</Dependency>
			<Dependency>dbus-devel</Dependency>
			<Dependency>libusb-devel</Dependency>
			<Dependency>libxslt-devel</Dependency>
			<Dependency>python3-devel</Dependency>
			<Dependency>ncurses-devel</Dependency>
			<Dependency>libsocket-devel</Dependency>
			<Dependency>bluez-libs-devel</Dependency>
			<Dependency>python3-pyserial</Dependency>
			<!-- <Dependency>python3-matplotlib</Dependency> -->
		</BuildDependencies>
		<Patches>
			<Patch level="1">pylibdir_path.patch</Patch>
			<Patch level="1">use_os_environ.patch</Patch>
		</Patches>
	</Source>

	<Package>
		<Name>gpsd</Name>
		<RuntimeDependencies>
			<Dependency>dbus</Dependency>
			<Dependency>libgcc</Dependency>
			<Dependency>libusb</Dependency>
			<Dependency>libsocket</Dependency>
			<Dependency>bluez-libs</Dependency>
		</RuntimeDependencies>
		<Files>
			<!-- <Path fileType="config">/etc/conf.d</Path> -->
			<Path fileType="executable">/usr/sbin</Path>
			<Path fileType="executable">/lib/udev/gpsd.hotplug</Path>
			<Path fileType="library">/usr/lib</Path>
			<Path fileType="data">/lib/udev/rules.d</Path>
			<Path fileType="man">/usr/share/man/man3</Path>
			<Path fileType="man">/usr/share/man/man5</Path>
			<Path fileType="man">/usr/share/man/man8/gpsd.8</Path>
			<Path fileType="man">/usr/share/man/man8/gpsinit.8</Path>
			<Path fileType="man">/usr/share/man/man8/gpsdctl.8</Path>
			<Path fileType="data">/usr/share/snmp/mibs/gpsd/GPSD-MIB</Path>
			<Path fileType="doc">/usr/share/gpsd/doc</Path>
		</Files>
		<AdditionalFiles>
			<!-- <AdditionalFile owner="root" permission="0644" target="/etc/conf.d/gpsd">gpsd.sysconfig</AdditionalFile> -->
		</AdditionalFiles>
		<Provides>
			<COMAR script="service.py">System.Service</COMAR>
		</Provides>
	</Package>

	<Package>
		<Name>gpsd-clients</Name>
		<RuntimeDependencies>
			<!-- <Dependency release="current">gpsd</Dependency> -->
			<Dependency>dbus</Dependency>
			<Dependency>libusb</Dependency>
			<Dependency>ncurses</Dependency>
			<Dependency>bluez-libs</Dependency>
			<Dependency>python3-gpsd</Dependency>
			<Dependency>python3-pyserial</Dependency>
			<Dependency>python3-matplotlib</Dependency>
		</RuntimeDependencies>
		<Files>
			<Path fileType="executable">/usr/bin</Path>
			<Path fileType="man">/usr/share/man/man1</Path>
			<Path fileType="man">/usr/share/man/man8/ppscheck.8</Path>
			<Path fileType="data">/usr/share/applications</Path>
			<Path fileType="data">/usr/share/gpsd/icons</Path>
			<Path fileType="data">/usr/share/pixmaps</Path>
		</Files>
		<AdditionalFiles>
			<AdditionalFile owner="root" permission="0644" target="/usr/share/pixmaps/gpsd-logo.png">data/gpsd-logo.png</AdditionalFile>
			<AdditionalFile owner="root" permission="0644" target="/usr/share/applications/xgps.desktop">data/xgps.desktop</AdditionalFile>
			<AdditionalFile owner="root" permission="0644" target="/usr/share/applications/xgpsspeed.desktop">data/xgpsspeed.desktop</AdditionalFile>
		</AdditionalFiles>
	</Package>

	<Package>
		<Name>python3-gpsd</Name>
		<RuntimeDependencies>
			<Dependency>python3-pyserial</Dependency>
		</RuntimeDependencies>
		<Files>
			<Path fileType="executable">/usr/bin/gpscat</Path>
			<Path fileType="executable">/usr/bin/gpsprof</Path>
			<Path fileType="executable">/usr/bin/gpsfake</Path>
			<Path fileType="library">/usr/lib/python3.9</Path>
			<Path fileType="man">/usr/share/man/man1/gpscat.1</Path>
			<Path fileType="man">/usr/share/man/man1/gpsprof.1</Path>
			<Path fileType="man">/usr/share/man/man1/gpsfake.1</Path>
		</Files>
	</Package>

	<Package>
		<Name>gpsd-devel</Name>
		<RuntimeDependencies>
			<Dependency release="current">gpsd</Dependency>
		</RuntimeDependencies>
		<Files>
			<Path fileType="header">/usr/include</Path>
			<Path fileType="data">/usr/lib/pkgconfig</Path>
		</Files>
	</Package>

	<History>
		<Update release="4">
			<Date>2023-01-22</Date>
			<Version>3.25</Version>
			<Comment>Version bump.</Comment>
			<Name>fury</Name>
			<Email>uglyside@yandex.ru</Email>
		</Update>
		<Update release="3">
			<Date>2022-11-10</Date>
			<Version>3.24</Version>
			<Comment>Version bump.</Comment>
			<Name>fury</Name>
			<Email>uglyside@yandex.ru</Email>
		</Update>
		<Update release="2">
			<Date>2021-10-24</Date>
			<Version>3.23.1</Version>
			<Comment>Version bump.</Comment>
			<Name>fury</Name>
			<Email>uglyside@yandex.ru</Email>
		</Update>
		<Update release="1">
			<Date>2020-12-27</Date>
			<Version>3.21</Version>
			<Comment>First build.</Comment>
			<Name>fury</Name>
			<Email>uglyside@yandex.ru</Email>
		</Update>
	</History>
</PISI>
